/**
 * 
 */
package com.et114.modules.content.dao;

import java.util.List;

import com.et114.components.simpletable.DataList;
import com.et114.components.simpletable.dao.SimpleTableDAOImpl;
import com.et114.modules.content.vo.Slider;

/*
 * @author guanhw
 */
public class SliderDao extends SimpleTableDAOImpl {
	
	public DataList getSliders( Slider vo ) throws Exception {
		return queryListDataList( vo , "getSliders" ) ; 
	}
	
	@ SuppressWarnings ( "unchecked" )
	public List< Slider > getSlidersNPage( Slider vo ) throws Exception {
		return queryList( vo , "getSlidersNPage" ) ;
	}
	
	public Slider getSlider( Long id ) throws Exception {
		return ( Slider  ) load( id , "getSliderById" ) ; 
	}
	
	public Long saveSlider( Slider vo ) throws Exception {
		return ( Long ) insert( vo , "insertSlider" ) ; 
	}
	
	public void updateSlider( Slider vo ) throws Exception {
		update( vo , "updateSlider" ) ; 
	}
	
	public void removeSlider( Long id ) throws Exception {
		delete( id , "removeSlider" ) ; 
	}
	
	@ SuppressWarnings ( "unchecked" )
	public List< Slider > getSlidersCacheModel( Slider vo ) throws Exception {
		return queryList( vo , "getSlidersCacheModel" ) ; 
	}
}
